package com.ruoyi.utils.mapper;

import com.ruoyi.domain.ParkingInfo;
import com.ruoyi.vo.dahua.DaHuaParkingListVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface DaHuaDigitalMapper {

    DaHuaDigitalMapper INSTANCE = Mappers.getMapper(DaHuaDigitalMapper.class);

    @Mapping(source = "parkType", target = "parkingType")
    @Mapping(source = "parkName", target = "parkingName")
    @Mapping(source = "parkCode", target = "parkingCode")
    @Mapping(source = "id", target = "parkingId")
    DaHuaParkingListVo toDaHuaParkingVo(ParkingInfo parkingInfo);

    List<DaHuaParkingListVo> toDaHuaParkingListVo(List<ParkingInfo> parkingInfoList);

}
